package com.hyfrogx.modules.manage.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hyfrogx.common.utils.QueryExt;
import com.hyfrogx.modules.manage.entity.CoindogLiveEntity;
import com.hyfrogx.modules.manage.form.flash.FlashVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @version 1.0.0
 * @Author: lfh
 * @Date: 2019/9/27 15:34
 * @Company 汉咏科技
 */
@Mapper
public interface HyFlashLiveDao extends BaseMapper<CoindogLiveEntity> {

    List<FlashVo> getByPageFromSql(@Param("query") QueryExt queryExt, @Param("map") Map map);

    Integer getLiveStatus(Long id);

    Long[] getTenFlashIds();

    void LiveUpList(@Param("ids") Long[] id, @Param("releaseTime") String releaseTime);

    void saveFlashList(@Param("lives") List<CoindogLiveEntity> lives);

    void LiveDownList(@Param("ids") Long[] id);

    void DeleteLiveList(@Param("ids") Long[] id);
}
